import styles from './style.scss';
import { useModel } from 'umi';

const index = () => {
  const { data, setData } = useModel('useGlobalModel');

  return (
    <div className={styles.container} onClick={() => setData(state => state + 1)}>
      {data}
    </div>
  );
};

export default index;
